package com.ecoolex.hotel.saas.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class DistributionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public DistributionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DistributionExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public DistributionExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        DistributionExample example = new DistributionExample();
        return example.createCriteria();
    }

    public DistributionExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public DistributionExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public DistributionExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public DistributionExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public DistributionExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDistributionIdIsNull() {
            addCriterion("distribution.DistributionId is null");
            return (Criteria) this;
        }

        public Criteria andDistributionIdIsNotNull() {
            addCriterion("distribution.DistributionId is not null");
            return (Criteria) this;
        }

        public Criteria andDistributionIdEqualTo(Integer value) {
            addCriterion("distribution.DistributionId =", value, "distributionId");
            return (Criteria) this;
        }

        public Criteria andDistributionIdEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DistributionId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDistributionIdNotEqualTo(Integer value) {
            addCriterion("distribution.DistributionId <>", value, "distributionId");
            return (Criteria) this;
        }

        public Criteria andDistributionIdNotEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DistributionId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDistributionIdGreaterThan(Integer value) {
            addCriterion("distribution.DistributionId >", value, "distributionId");
            return (Criteria) this;
        }

        public Criteria andDistributionIdGreaterThanColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DistributionId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDistributionIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("distribution.DistributionId >=", value, "distributionId");
            return (Criteria) this;
        }

        public Criteria andDistributionIdGreaterThanOrEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DistributionId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDistributionIdLessThan(Integer value) {
            addCriterion("distribution.DistributionId <", value, "distributionId");
            return (Criteria) this;
        }

        public Criteria andDistributionIdLessThanColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DistributionId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDistributionIdLessThanOrEqualTo(Integer value) {
            addCriterion("distribution.DistributionId <=", value, "distributionId");
            return (Criteria) this;
        }

        public Criteria andDistributionIdLessThanOrEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DistributionId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDistributionIdIn(List<Integer> values) {
            addCriterion("distribution.DistributionId in", values, "distributionId");
            return (Criteria) this;
        }

        public Criteria andDistributionIdNotIn(List<Integer> values) {
            addCriterion("distribution.DistributionId not in", values, "distributionId");
            return (Criteria) this;
        }

        public Criteria andDistributionIdBetween(Integer value1, Integer value2) {
            addCriterion("distribution.DistributionId between", value1, value2, "distributionId");
            return (Criteria) this;
        }

        public Criteria andDistributionIdNotBetween(Integer value1, Integer value2) {
            addCriterion("distribution.DistributionId not between", value1, value2, "distributionId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdIsNull() {
            addCriterion("distribution.DepartmentId is null");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdIsNotNull() {
            addCriterion("distribution.DepartmentId is not null");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdEqualTo(Integer value) {
            addCriterion("distribution.DepartmentId =", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DepartmentId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDepartmentIdNotEqualTo(Integer value) {
            addCriterion("distribution.DepartmentId <>", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdNotEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DepartmentId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDepartmentIdGreaterThan(Integer value) {
            addCriterion("distribution.DepartmentId >", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdGreaterThanColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DepartmentId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDepartmentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("distribution.DepartmentId >=", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdGreaterThanOrEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DepartmentId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDepartmentIdLessThan(Integer value) {
            addCriterion("distribution.DepartmentId <", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdLessThanColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DepartmentId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDepartmentIdLessThanOrEqualTo(Integer value) {
            addCriterion("distribution.DepartmentId <=", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdLessThanOrEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DepartmentId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDepartmentIdIn(List<Integer> values) {
            addCriterion("distribution.DepartmentId in", values, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdNotIn(List<Integer> values) {
            addCriterion("distribution.DepartmentId not in", values, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdBetween(Integer value1, Integer value2) {
            addCriterion("distribution.DepartmentId between", value1, value2, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("distribution.DepartmentId not between", value1, value2, "departmentId");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("distribution.`Type` is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("distribution.`Type` is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Integer value) {
            addCriterion("distribution.`Type` =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.`Type` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Integer value) {
            addCriterion("distribution.`Type` <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.`Type` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Integer value) {
            addCriterion("distribution.`Type` >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.`Type` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("distribution.`Type` >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.`Type` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Integer value) {
            addCriterion("distribution.`Type` <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.`Type` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Integer value) {
            addCriterion("distribution.`Type` <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.`Type` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Integer> values) {
            addCriterion("distribution.`Type` in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Integer> values) {
            addCriterion("distribution.`Type` not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Integer value1, Integer value2) {
            addCriterion("distribution.`Type` between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("distribution.`Type` not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andDistributionRatioIsNull() {
            addCriterion("distribution.DistributionRatio is null");
            return (Criteria) this;
        }

        public Criteria andDistributionRatioIsNotNull() {
            addCriterion("distribution.DistributionRatio is not null");
            return (Criteria) this;
        }

        public Criteria andDistributionRatioEqualTo(BigDecimal value) {
            addCriterion("distribution.DistributionRatio =", value, "distributionRatio");
            return (Criteria) this;
        }

        public Criteria andDistributionRatioEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DistributionRatio = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDistributionRatioNotEqualTo(BigDecimal value) {
            addCriterion("distribution.DistributionRatio <>", value, "distributionRatio");
            return (Criteria) this;
        }

        public Criteria andDistributionRatioNotEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DistributionRatio <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDistributionRatioGreaterThan(BigDecimal value) {
            addCriterion("distribution.DistributionRatio >", value, "distributionRatio");
            return (Criteria) this;
        }

        public Criteria andDistributionRatioGreaterThanColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DistributionRatio > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDistributionRatioGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("distribution.DistributionRatio >=", value, "distributionRatio");
            return (Criteria) this;
        }

        public Criteria andDistributionRatioGreaterThanOrEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DistributionRatio >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDistributionRatioLessThan(BigDecimal value) {
            addCriterion("distribution.DistributionRatio <", value, "distributionRatio");
            return (Criteria) this;
        }

        public Criteria andDistributionRatioLessThanColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DistributionRatio < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDistributionRatioLessThanOrEqualTo(BigDecimal value) {
            addCriterion("distribution.DistributionRatio <=", value, "distributionRatio");
            return (Criteria) this;
        }

        public Criteria andDistributionRatioLessThanOrEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DistributionRatio <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDistributionRatioIn(List<BigDecimal> values) {
            addCriterion("distribution.DistributionRatio in", values, "distributionRatio");
            return (Criteria) this;
        }

        public Criteria andDistributionRatioNotIn(List<BigDecimal> values) {
            addCriterion("distribution.DistributionRatio not in", values, "distributionRatio");
            return (Criteria) this;
        }

        public Criteria andDistributionRatioBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("distribution.DistributionRatio between", value1, value2, "distributionRatio");
            return (Criteria) this;
        }

        public Criteria andDistributionRatioNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("distribution.DistributionRatio not between", value1, value2, "distributionRatio");
            return (Criteria) this;
        }

        public Criteria andDistributionAmtIsNull() {
            addCriterion("distribution.DistributionAmt is null");
            return (Criteria) this;
        }

        public Criteria andDistributionAmtIsNotNull() {
            addCriterion("distribution.DistributionAmt is not null");
            return (Criteria) this;
        }

        public Criteria andDistributionAmtEqualTo(BigDecimal value) {
            addCriterion("distribution.DistributionAmt =", value, "distributionAmt");
            return (Criteria) this;
        }

        public Criteria andDistributionAmtEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DistributionAmt = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDistributionAmtNotEqualTo(BigDecimal value) {
            addCriterion("distribution.DistributionAmt <>", value, "distributionAmt");
            return (Criteria) this;
        }

        public Criteria andDistributionAmtNotEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DistributionAmt <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDistributionAmtGreaterThan(BigDecimal value) {
            addCriterion("distribution.DistributionAmt >", value, "distributionAmt");
            return (Criteria) this;
        }

        public Criteria andDistributionAmtGreaterThanColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DistributionAmt > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDistributionAmtGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("distribution.DistributionAmt >=", value, "distributionAmt");
            return (Criteria) this;
        }

        public Criteria andDistributionAmtGreaterThanOrEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DistributionAmt >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDistributionAmtLessThan(BigDecimal value) {
            addCriterion("distribution.DistributionAmt <", value, "distributionAmt");
            return (Criteria) this;
        }

        public Criteria andDistributionAmtLessThanColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DistributionAmt < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDistributionAmtLessThanOrEqualTo(BigDecimal value) {
            addCriterion("distribution.DistributionAmt <=", value, "distributionAmt");
            return (Criteria) this;
        }

        public Criteria andDistributionAmtLessThanOrEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.DistributionAmt <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDistributionAmtIn(List<BigDecimal> values) {
            addCriterion("distribution.DistributionAmt in", values, "distributionAmt");
            return (Criteria) this;
        }

        public Criteria andDistributionAmtNotIn(List<BigDecimal> values) {
            addCriterion("distribution.DistributionAmt not in", values, "distributionAmt");
            return (Criteria) this;
        }

        public Criteria andDistributionAmtBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("distribution.DistributionAmt between", value1, value2, "distributionAmt");
            return (Criteria) this;
        }

        public Criteria andDistributionAmtNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("distribution.DistributionAmt not between", value1, value2, "distributionAmt");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("distribution.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("distribution.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("distribution.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("distribution.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("distribution.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("distribution.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("distribution.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("distribution.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("distribution.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("distribution.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("distribution.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("distribution.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("distribution.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("distribution.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("distribution.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("distribution.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("distribution.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("distribution.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("distribution.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("distribution.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("distribution.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("distribution.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("distribution.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("distribution.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("distribution.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("distribution.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("distribution.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("distribution.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("distribution.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("distribution.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("distribution.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("distribution.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("distribution.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("distribution.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("distribution.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("distribution.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("distribution.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("distribution.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("distribution.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("distribution.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("distribution.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("distribution.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("distribution.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("distribution.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("distribution.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("distribution.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("distribution.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("distribution.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("distribution.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("distribution.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("distribution.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("distribution.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("distribution.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("distribution.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("distribution.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("distribution.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("distribution.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("distribution.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("distribution.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("distribution.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(Distribution.Column column) {
            addCriterion(new StringBuilder("distribution.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("distribution.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("distribution.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("distribution.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("distribution.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private DistributionExample example;

        protected Criteria(DistributionExample example) {
            super();
            this.example = example;
        }

        public DistributionExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(Distribution.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(Distribution.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.hotel.saas.entity.DistributionExample example);
    }
}